import React from 'react';
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'
import Home from './components/Home'
import './App.css';
// import Private from './components/Private'
import Register from './components/Register'
import Login from './components/Login'
import Mine from './components/Mine/MineCont'
import RegetPassword from './components/Login/ForgetPassword'

function App() {
  return (
    <div className="App">
      <Router>
        <Switch>
          <Route path='/register' component={Register}></Route>
          <Route path='/login' component={Login}></Route>
          <Route path='/minecont' component={Mine}></Route>
          <Route path='/forgetPassword' component={RegetPassword}></Route>
          <Route path='/' component={Home}></Route>
        </Switch>
      </Router>
    </div>
  );
}

export default App;
